<div class="modal fade" id="myModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
                        data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    用户注册
                </h4>
            </div>
            <div class="modal-body">
                <form  method="post" action="register" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-group">
        <label for="inputName" class="col-md-2 control-label">用户名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="username"  name="username"  placeholder="Name"/>
        </div></div>
        <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass"  name="pass"  placeholder="pass"/>
    </div>
    </div>
     <div class="form-group">
        <label for="inputpass" class="col-md-2 control-label">再次输入密码</label>
        <div class="col-md-10">
        <input type="password" class="form-control" id="pass2"  name="pass2" value="{$user.pass}" placeholder="pass2"/>
    </div>
    </div> 
<div class="form-group">
        <label for="inputName" class="col-md-2 control-label">真实性名</label>
        <div class="col-md-10">
        <input type="text" class="form-control" id="realname"  name="realname"  placeholder="Name"/>
    </div>
    </div>
<div class="form-group">
        <label for="Email" class="col-md-2 control-label">邮箱</label>
        <div class="col-md-10">
        <input type="email" class="form-control" id="email"  name="email"  placeholder="email"/>
    </div>
    </div>
    <div class="form-group">
        <label for="tele" class="col-md-2 control-label">电话</label>
        <div class="col-md-10">
        <input type="tel" class="form-control" id="tele"  name="tele"  placeholder="tele"/>
    </div>
</div>
<div class="form-group">
        <label for="pic" class="col-md-2 control-label">头像</label>
        <div class="col-md-10">
            <input type="file" name="photo" />
        </div>
    </div>
       
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="submit" class="btn btn-primary">注册</button>
            </div>

    </div>
        </div>
    </div>   
</div><!-- /.modal-content -->

 </form>


</body>
</html>